/**
 * @flow
 */
import React from 'react'
import {StyleSheet} from 'react-native'

import RxClick from './RxClick'

const RxButton = props => {
  // prettier-ignore
  const {children, onPress, ...other} = props
  return (
    <RxClick style={[styles.container]} {...other} onPress={onPress}>
      {children}
    </RxClick>
  )
}

RxButton.prototype = {
  ...RxClick.prototype,
}

RxButton.defaultProps = {
  ...RxClick.defaultProps,
}

export default RxButton

const styles = StyleSheet.create({
  container: {},
  view: {},
  text: {},
})
